SIM5 Practice Like any SIM program, each of the following programs will either � Execute a halt statement � Execute an illegal instruction � Pause at an input instruction waiting for data � Terminate when MAXCNT instructions have been executed. Assuming each of the following programs begins execution at address 000, indicate how it will terminate (halt, illegal, wait, or MAXCNT) and specify the address in the instruction pointer (%r9) when execution is terminated by one of the four events. Remember that the SIM C code initializes all 1000 words of memory and the 10 processor registers to zero. 1. ip address __ __ __ (1) halt (2) illegal (3) wait (4) MAXCNT start: pop %r9 .end start 2. ip address __ __ __ (1) halt (2) illegal (3) wait (4) MAXCNT start: call %r7 .end start 3. ip address __ __ __ (1) halt (2) illegal (3) wait (4) MAXCNT start: call %r5 .end start 4. ip address __ __ __ (1) halt (2) illegal (3) wait (4) MAXCNT start: push %r9 push %r9 pop %r9 .end start 5. ip address __ __ __ (1) halt (2) illegal (3) wait (4) MAXCNT start: lda start call %r0 .end start 6. ip address __ __ __ (1) halt (2) illegal (3) wait (4) MAXCNT start: lda one mvrr %r0,%r1 lda two mvrr %r0,%r2 one: call two two: call one .end start